import axios from "axios";

export async function getmeteappDate({
  pageSize = 5,
  pageNo = 1,
  id,
  params,
}: {
  pageSize?: number;
  pageNo?: number;
  id: string | number;
  params?: Record<string, any>;
}) {
  // 需要更换本地服务ip地址，端口不变，本地服务端口为3000
  return await axios.get(`http://192.168.1.7:3000/meteapp/${id}`, {
    params: {
      pageSize,
      pageNo,
      ...params,
    },
  });
}
